#include<iostream>
#include<string>
#include<map>
using namespace std;
int main(){
	map<string,int> dict;
	dict["Tom"] = 1;
	dict["Jone"] = 2;
	dict["Mary"] = 1;
	if(dict.count("Mary")){
		cout << "Mary is Class" << dict["Mary"] << endl;
		dict["Mary"] = 5;
	}
	for(map<string,int>::iterator it=dict.begin();it!=dict.end();it++){
		cout << it->first << "is in Class" << it->second << endl;
	}
	dict.clear();
	return 0;
} 
